package main

import (
	"syscall"

	"gitee.com/hlwqds/clientSimulation/src/lib/lg"
	"github.com/judwhite/go-svc/svc"
)

func main() {
	prg := &program{}
	if err := svc.Run(prg, syscall.SIGINT, syscall.SIGTERM); err != nil {
		logFatal("%s", err)
	}
}

func logFatal(f string, args ...interface{}) {
	lg.LogFatal("[customer] ", f, args...)
}
